package com.humanresource.domain.po.clerksalary;

import java.util.ArrayList;
import java.util.List;

public class SalarydistributionExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SalarydistributionExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andSalarydistributionidIsNull() {
            addCriterion("SalaryDistributionId is null");
            return (Criteria) this;
        }

        public Criteria andSalarydistributionidIsNotNull() {
            addCriterion("SalaryDistributionId is not null");
            return (Criteria) this;
        }

        public Criteria andSalarydistributionidEqualTo(String value) {
            addCriterion("SalaryDistributionId =", value, "salarydistributionid");
            return (Criteria) this;
        }

        public Criteria andSalarydistributionidNotEqualTo(String value) {
            addCriterion("SalaryDistributionId <>", value, "salarydistributionid");
            return (Criteria) this;
        }

        public Criteria andSalarydistributionidGreaterThan(String value) {
            addCriterion("SalaryDistributionId >", value, "salarydistributionid");
            return (Criteria) this;
        }

        public Criteria andSalarydistributionidGreaterThanOrEqualTo(String value) {
            addCriterion("SalaryDistributionId >=", value, "salarydistributionid");
            return (Criteria) this;
        }

        public Criteria andSalarydistributionidLessThan(String value) {
            addCriterion("SalaryDistributionId <", value, "salarydistributionid");
            return (Criteria) this;
        }

        public Criteria andSalarydistributionidLessThanOrEqualTo(String value) {
            addCriterion("SalaryDistributionId <=", value, "salarydistributionid");
            return (Criteria) this;
        }

        public Criteria andSalarydistributionidLike(String value) {
            addCriterion("SalaryDistributionId like", value, "salarydistributionid");
            return (Criteria) this;
        }

        public Criteria andSalarydistributionidNotLike(String value) {
            addCriterion("SalaryDistributionId not like", value, "salarydistributionid");
            return (Criteria) this;
        }

        public Criteria andSalarydistributionidIn(List<String> values) {
            addCriterion("SalaryDistributionId in", values, "salarydistributionid");
            return (Criteria) this;
        }

        public Criteria andSalarydistributionidNotIn(List<String> values) {
            addCriterion("SalaryDistributionId not in", values, "salarydistributionid");
            return (Criteria) this;
        }

        public Criteria andSalarydistributionidBetween(String value1, String value2) {
            addCriterion("SalaryDistributionId between", value1, value2, "salarydistributionid");
            return (Criteria) this;
        }

        public Criteria andSalarydistributionidNotBetween(String value1, String value2) {
            addCriterion("SalaryDistributionId not between", value1, value2, "salarydistributionid");
            return (Criteria) this;
        }

        public Criteria andInstnameIsNull() {
            addCriterion("InstName is null");
            return (Criteria) this;
        }

        public Criteria andInstnameIsNotNull() {
            addCriterion("InstName is not null");
            return (Criteria) this;
        }

        public Criteria andInstnameEqualTo(String value) {
            addCriterion("InstName =", value, "instname");
            return (Criteria) this;
        }

        public Criteria andInstnameNotEqualTo(String value) {
            addCriterion("InstName <>", value, "instname");
            return (Criteria) this;
        }

        public Criteria andInstnameGreaterThan(String value) {
            addCriterion("InstName >", value, "instname");
            return (Criteria) this;
        }

        public Criteria andInstnameGreaterThanOrEqualTo(String value) {
            addCriterion("InstName >=", value, "instname");
            return (Criteria) this;
        }

        public Criteria andInstnameLessThan(String value) {
            addCriterion("InstName <", value, "instname");
            return (Criteria) this;
        }

        public Criteria andInstnameLessThanOrEqualTo(String value) {
            addCriterion("InstName <=", value, "instname");
            return (Criteria) this;
        }

        public Criteria andInstnameLike(String value) {
            addCriterion("InstName like", value, "instname");
            return (Criteria) this;
        }

        public Criteria andInstnameNotLike(String value) {
            addCriterion("InstName not like", value, "instname");
            return (Criteria) this;
        }

        public Criteria andInstnameIn(List<String> values) {
            addCriterion("InstName in", values, "instname");
            return (Criteria) this;
        }

        public Criteria andInstnameNotIn(List<String> values) {
            addCriterion("InstName not in", values, "instname");
            return (Criteria) this;
        }

        public Criteria andInstnameBetween(String value1, String value2) {
            addCriterion("InstName between", value1, value2, "instname");
            return (Criteria) this;
        }

        public Criteria andInstnameNotBetween(String value1, String value2) {
            addCriterion("InstName not between", value1, value2, "instname");
            return (Criteria) this;
        }

        public Criteria andIsbookIsNull() {
            addCriterion("IsBook is null");
            return (Criteria) this;
        }

        public Criteria andIsbookIsNotNull() {
            addCriterion("IsBook is not null");
            return (Criteria) this;
        }

        public Criteria andIsbookEqualTo(String value) {
            addCriterion("IsBook =", value, "isbook");
            return (Criteria) this;
        }

        public Criteria andIsbookNotEqualTo(String value) {
            addCriterion("IsBook <>", value, "isbook");
            return (Criteria) this;
        }

        public Criteria andIsbookGreaterThan(String value) {
            addCriterion("IsBook >", value, "isbook");
            return (Criteria) this;
        }

        public Criteria andIsbookGreaterThanOrEqualTo(String value) {
            addCriterion("IsBook >=", value, "isbook");
            return (Criteria) this;
        }

        public Criteria andIsbookLessThan(String value) {
            addCriterion("IsBook <", value, "isbook");
            return (Criteria) this;
        }

        public Criteria andIsbookLessThanOrEqualTo(String value) {
            addCriterion("IsBook <=", value, "isbook");
            return (Criteria) this;
        }

        public Criteria andIsbookLike(String value) {
            addCriterion("IsBook like", value, "isbook");
            return (Criteria) this;
        }

        public Criteria andIsbookNotLike(String value) {
            addCriterion("IsBook not like", value, "isbook");
            return (Criteria) this;
        }

        public Criteria andIsbookIn(List<String> values) {
            addCriterion("IsBook in", values, "isbook");
            return (Criteria) this;
        }

        public Criteria andIsbookNotIn(List<String> values) {
            addCriterion("IsBook not in", values, "isbook");
            return (Criteria) this;
        }

        public Criteria andIsbookBetween(String value1, String value2) {
            addCriterion("IsBook between", value1, value2, "isbook");
            return (Criteria) this;
        }

        public Criteria andIsbookNotBetween(String value1, String value2) {
            addCriterion("IsBook not between", value1, value2, "isbook");
            return (Criteria) this;
        }

        public Criteria andIscheckIsNull() {
            addCriterion("IsCheck is null");
            return (Criteria) this;
        }

        public Criteria andIscheckIsNotNull() {
            addCriterion("IsCheck is not null");
            return (Criteria) this;
        }

        public Criteria andIscheckEqualTo(String value) {
            addCriterion("IsCheck =", value, "ischeck");
            return (Criteria) this;
        }

        public Criteria andIscheckNotEqualTo(String value) {
            addCriterion("IsCheck <>", value, "ischeck");
            return (Criteria) this;
        }

        public Criteria andIscheckGreaterThan(String value) {
            addCriterion("IsCheck >", value, "ischeck");
            return (Criteria) this;
        }

        public Criteria andIscheckGreaterThanOrEqualTo(String value) {
            addCriterion("IsCheck >=", value, "ischeck");
            return (Criteria) this;
        }

        public Criteria andIscheckLessThan(String value) {
            addCriterion("IsCheck <", value, "ischeck");
            return (Criteria) this;
        }

        public Criteria andIscheckLessThanOrEqualTo(String value) {
            addCriterion("IsCheck <=", value, "ischeck");
            return (Criteria) this;
        }

        public Criteria andIscheckLike(String value) {
            addCriterion("IsCheck like", value, "ischeck");
            return (Criteria) this;
        }

        public Criteria andIscheckNotLike(String value) {
            addCriterion("IsCheck not like", value, "ischeck");
            return (Criteria) this;
        }

        public Criteria andIscheckIn(List<String> values) {
            addCriterion("IsCheck in", values, "ischeck");
            return (Criteria) this;
        }

        public Criteria andIscheckNotIn(List<String> values) {
            addCriterion("IsCheck not in", values, "ischeck");
            return (Criteria) this;
        }

        public Criteria andIscheckBetween(String value1, String value2) {
            addCriterion("IsCheck between", value1, value2, "ischeck");
            return (Criteria) this;
        }

        public Criteria andIscheckNotBetween(String value1, String value2) {
            addCriterion("IsCheck not between", value1, value2, "ischeck");
            return (Criteria) this;
        }

        public Criteria andPersonnumIsNull() {
            addCriterion("PersonNum is null");
            return (Criteria) this;
        }

        public Criteria andPersonnumIsNotNull() {
            addCriterion("PersonNum is not null");
            return (Criteria) this;
        }

        public Criteria andPersonnumEqualTo(Integer value) {
            addCriterion("PersonNum =", value, "personnum");
            return (Criteria) this;
        }

        public Criteria andPersonnumNotEqualTo(Integer value) {
            addCriterion("PersonNum <>", value, "personnum");
            return (Criteria) this;
        }

        public Criteria andPersonnumGreaterThan(Integer value) {
            addCriterion("PersonNum >", value, "personnum");
            return (Criteria) this;
        }

        public Criteria andPersonnumGreaterThanOrEqualTo(Integer value) {
            addCriterion("PersonNum >=", value, "personnum");
            return (Criteria) this;
        }

        public Criteria andPersonnumLessThan(Integer value) {
            addCriterion("PersonNum <", value, "personnum");
            return (Criteria) this;
        }

        public Criteria andPersonnumLessThanOrEqualTo(Integer value) {
            addCriterion("PersonNum <=", value, "personnum");
            return (Criteria) this;
        }

        public Criteria andPersonnumIn(List<Integer> values) {
            addCriterion("PersonNum in", values, "personnum");
            return (Criteria) this;
        }

        public Criteria andPersonnumNotIn(List<Integer> values) {
            addCriterion("PersonNum not in", values, "personnum");
            return (Criteria) this;
        }

        public Criteria andPersonnumBetween(Integer value1, Integer value2) {
            addCriterion("PersonNum between", value1, value2, "personnum");
            return (Criteria) this;
        }

        public Criteria andPersonnumNotBetween(Integer value1, Integer value2) {
            addCriterion("PersonNum not between", value1, value2, "personnum");
            return (Criteria) this;
        }

        public Criteria andBasicsalarysumIsNull() {
            addCriterion("BasicSalarySum is null");
            return (Criteria) this;
        }

        public Criteria andBasicsalarysumIsNotNull() {
            addCriterion("BasicSalarySum is not null");
            return (Criteria) this;
        }

        public Criteria andBasicsalarysumEqualTo(Float value) {
            addCriterion("BasicSalarySum =", value, "basicsalarysum");
            return (Criteria) this;
        }

        public Criteria andBasicsalarysumNotEqualTo(Float value) {
            addCriterion("BasicSalarySum <>", value, "basicsalarysum");
            return (Criteria) this;
        }

        public Criteria andBasicsalarysumGreaterThan(Float value) {
            addCriterion("BasicSalarySum >", value, "basicsalarysum");
            return (Criteria) this;
        }

        public Criteria andBasicsalarysumGreaterThanOrEqualTo(Float value) {
            addCriterion("BasicSalarySum >=", value, "basicsalarysum");
            return (Criteria) this;
        }

        public Criteria andBasicsalarysumLessThan(Float value) {
            addCriterion("BasicSalarySum <", value, "basicsalarysum");
            return (Criteria) this;
        }

        public Criteria andBasicsalarysumLessThanOrEqualTo(Float value) {
            addCriterion("BasicSalarySum <=", value, "basicsalarysum");
            return (Criteria) this;
        }

        public Criteria andBasicsalarysumIn(List<Float> values) {
            addCriterion("BasicSalarySum in", values, "basicsalarysum");
            return (Criteria) this;
        }

        public Criteria andBasicsalarysumNotIn(List<Float> values) {
            addCriterion("BasicSalarySum not in", values, "basicsalarysum");
            return (Criteria) this;
        }

        public Criteria andBasicsalarysumBetween(Float value1, Float value2) {
            addCriterion("BasicSalarySum between", value1, value2, "basicsalarysum");
            return (Criteria) this;
        }

        public Criteria andBasicsalarysumNotBetween(Float value1, Float value2) {
            addCriterion("BasicSalarySum not between", value1, value2, "basicsalarysum");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}